<!DOCTYPE html>
<html>
<head>
    <title>会员管理</title>
    <#include "/include/base/header.ftl">
</head>
<body>
<div class="wrapper">
    <div class="main-content">
        <div class="box box-main">
            <div class="box-body">
                <form id="searchForm" action="${ctx}/mall/member/dataList" class="form-inline" onsubmit="return search();">
                    <div class="form-group">
                        <label class="control-label">会员名称：</label>
                        <div class="control-inline">
                            <input type="text" name="memberName" value="" maxlength="100" class="form-control width-120" autocomplete="off" />
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary btn-sm">查询</button>
                        <button type="reset" class="btn btn-default btn-sm">重置</button>
                    </div>
                </form>
                <table id="datatable" class="table table-hover table-striped table-bordered"></table>
            </div>
        </div>
    </div>
</div>
</body>
<#include "/include/base/footer.ftl">
<#include "/include/pagelist.ftl">
<script>
    $(function () {
        $("#datatable").datatable([
            {
                field: "id", title: "会员编号", align: "center", width: "80",
                formatter: function (value, row, index) {
                    return '<span class="primary">'+value+'</span>';
                }
            },
            { field: "name", title: "姓名", align: "center", width: "300" },
            { field: "nickname", title: "昵称", align: "center", width: "300" },
            { field: "registerTime", title: "注册时间", align: "center", width: "200" },
            {
                field: "balance", title: "余额", align: "center", width: "100",
                formatter: function (value, row, index) {
                    return fenToYuan(value);
                }
            }
        ])
    })
</script>
</html>